<?php
if (isset($images)) {
    foreach ($images as $item) {
        ?>
        <div class="result-img">
            <img src="<?php echo BASE_URL . 'uploads/products/' . $item['name']; ?>"/>
            <br/><input class="item-selected" <?php echo ($item['is_selected'] == 1) ? 'checked' : ''; ?> onclick='javascript:selectedImage(this, <?php echo $item['product_id']; ?>);' data-id="<?php echo $item['id']; ?>" name="item-selected" type="radio" />
            <div class="close-img" data-id="<?php echo $item['id']; ?>" onclick='javascript:removeImage(this, "image");'></div>
        </div>
        <?php
    }
}
?>